<%@ page import="model.PersonalDetailsBean" %>
<jsp:useBean id="Info" scope="session" class="model.PersonalDetailsBean"/>

<html><body>
<%
String gender = request.getParameter("gender"); 
if(gender==null){
%>

<h2> <%= Info.getName() %> , Please input your gender!</h2>
<form method="post" action="http://localhost:8080/Lab4/SimpleHoroscope2">
<input type="radio" name="gender" value="true">Male<br>
<input type="radio" name="gender" value="false">Female<br>
<input type="submit" value="submit">
</form>

<%
}
else{
%>

<p>Hello <%= Info.getName() %> , <%= Info.getFuture() %> </p>

<%
}
%>
</body>
</html>